import request from "../request.js"
function findAddress(data){
	return request({
		url:"/lejuClient/address/findAllAddress",
		data,
	})
}
function addressInfo(data){
	return request({
		url:"/lejuClient/address/addAddressInfo",
		data,
		method:'post'
	})
}
function updataAdd(data){
	return request({
		url:"/lejuClient/address/updateAddressInfo",
		data,
		method:'post'
	})
}
function change(id,status,data){
	return request({
		url:`/lejuClient/address/switchDefault/${id}/${status}`,
		data,
		method:'post'
	})
}
function delAddress(id,data){
	return request({
		url:`/lejuClient/address/delAddressInfo/${id}`,
		data,
		method:'DELETE'
	})
}
export{
	findAddress,
	addressInfo,
	updataAdd,
	change,
	delAddress
}